iconview: Special case the empty iconview
authorBenjamin Otte <otte@redhat.com>
Fri, 15 Jun 2012 00:44:45 +0000 (02:44 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 15 Jun 2012 00:44:45 +0000 (02:44 +0200)
commit5c46f81e7bfac652b4eff16eacf26497c87e0cd3
tree565334a7444c67fdb26d24d1a82eab2e027a6155
parentd40c496e6eacb9f95c2b27eaebf58d320c2b9387
iconview: Special case the empty iconview

If the icon view is empty, we cannot get a reasonable size request from
the cell renderers. So all values we would compute are pretty much
useless.
So we special case it.

This also gets rid of a bunch of crashers from div-by-0 in corner cases.

https://bugzilla.gnome.org/show_bug.cgi?id=677809
gtk/gtkiconview.c